'use strict';

module.exports = app => {
    const { STRING, INTEGER, DATE } = app.Sequelize;

    const User = app.model.define('user', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        username: STRING(255),
        email: STRING(255),
        role: INTEGER,
        access_token: STRING(32),
        nick_name: STRING(20),
        user_tel: STRING(20)

    }, {
        paranoid: false,
        createdAt: false,
        updatedAt: false,
    });

    return User;
};